package cn.qn.repository.sys;

import cn.qn.moudle.sys.Area;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Auther: Bryant
 * @Date: 2018/6/9
 * @Description: 区
 */
@Repository
public interface AreaRepository extends JpaRepository<Area,String> {

    List<Area> findByCityCodeOrderByCode(String cityCode);

    Area findByCode(String areaCode);

    Area findAllByNameContaining(String areaName);
}

